<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>小区管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/sys/community/allCommunity">小区列表</a></li>
</ul>
<form:form id="searchForm" modelAttribute="tbCommunity" action="${ctx}/sys/community/allCommunity" method="post" class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <label>小区名称：</label><form:input path="commName" htmlEscape="false" maxlength="50" class="input-medium"/>
    <label>省：</label><form:input path="provinceName" htmlEscape="false" maxlength="50" class="input-medium"/>
    <label>市：</label><form:input path="cityName" htmlEscape="false" maxlength="50" class="input-medium"/>
    <label>区：</label><form:input path="areaName" htmlEscape="false" maxlength="50" class="input-medium"/>
    &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
</form:form>
<span><font style="color: #00A6C7">${message1}</font></span>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead><tr><th>小区名称</th>
        <th>省</th><th>市</th><th>区</th>
        <th>详细地址</th></th><th>是否展示</th></tr></thead>
    <tbody>
    <c:forEach items="${page.list}" var="community">
        <tr>
            <td>${community.commName}</td>
            <td>${community.provinceName}</td><td>${community.cityName}</td><td>${community.areaName}</td><td>${community.address}</td>
            <%--<td>${community.lng}</td>--%>
            <%--<td>${community.lat}</td>--%>
            <td><c:if test="${community.isActive==1}">是</c:if><c:if test="${community.isActive==0}">否</c:if></td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>